package com.xin.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotations.Version;

import lombok.Data;
import lombok.experimental.Accessors;

/**
 * <p>
 * 校园卡消费
 * </p>
 *
 * @author l1
 * @since 2017-11-14
 */
@Data
@Accessors(chain = true)
@TableName("u_student_xyk_xiao_fei_xiang_qing")
public class UStudentXykXiaoFeiXiangQing extends Model<UStudentXykXiaoFeiXiangQing> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 学生工号
     */
	private String sid;
    /**
     * 年份
     */
	@TableField("nian_fen")
	private Integer nianFen;
    /**
     * 月份
     */
	@TableField("yue_fen")
	private Integer yueFen;
    /**
     * 消费日期
     */
	@TableField("xiao_fei_ri_qi")
	private Date xiaoFeiRiQi;
    /**
     * 消费金额
     */
	@TableField("xiao_fei_jin_e")
	private Float xiaoFeiJinE;
    /**
     * 余额
     */
	@TableField("yu_e")
	private Float yuE;
    /**
     * 消费地点
     */
	@TableField("xiao_fei_di_dian")
	private String xiaoFeiDiDian;


	@Override
	protected Serializable pkVal() {
		return this.id;
	}

}
